<%= form_for(@alarm) do |f| %>
  <% if @alarm.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@alarm.errors.count, "error") %> prohibited this alarm from being saved:</h2>

      <ul>
      <% @alarm.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :alarmType %><br>
    <%= f.text_field :alarmType %>
  </div>
  <div class="field">
    <%= f.label :alarmType_Name %><br>
    <%= f.text_field :alarmType_Name %>
  </div>
  <div class="field">
    <%= f.label :alarmTypeDiv %><br>
    <%= f.text_field :alarmTypeDiv %>
  </div>
  <div class="field">
    <%= f.label :target %><br>
    <%= f.text_field :target %>
  </div>
  <div class="field">
    <%= f.label :target_name %><br>
    <%= f.text_field :target_name %>
  </div>
  <div class="field">
    <%= f.label :switchVal %><br>
    <%= f.text_field :switchVal %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
